//
//  PasswordTextField.m
//  YYPHSpeedJump
//
//  Created by speedjump on 15/12/26.
//  Copyright © 2015年 sujiang. All rights reserved.
//

#import "PasswordTextField.h"

@implementation PasswordTextField

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (CGRect)textRectForBounds:(CGRect)bounds
{
    CGRect rect = [super editingRectForBounds:bounds];
    
    UIEdgeInsets insets = UIEdgeInsetsMake(0, 15, 0, 0);
    return UIEdgeInsetsInsetRect(rect, insets);
}
- (CGRect)editingRectForBounds:(CGRect)bounds {
    CGRect rect = [super editingRectForBounds:bounds];
    
    UIEdgeInsets insets = UIEdgeInsetsMake(0, 15, 0, 0);
    return UIEdgeInsetsInsetRect(rect, insets);
}

@end
